﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt
{
	// Token: 0x020000A6 RID: 166
	public class TDropStmt : TCustomSqlStatement
	{
		// Token: 0x0600052A RID: 1322 RVA: 0x002FCAAD File Offset: 0x002FACAD
		public TObjectName getDbObjectName()
		{
			return this.dbObjectName;
		}

		// Token: 0x0600052B RID: 1323 RVA: 0x002FCAB5 File Offset: 0x002FACB5
		public EDbObjectType getDbObjectType()
		{
			return this.dbObjectType;
		}

		// Token: 0x0600052C RID: 1324 RVA: 0x002FCABD File Offset: 0x002FACBD
		public TDropStmt(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstDrop;
		}

		// Token: 0x0600052D RID: 1325 RVA: 0x002FCAD4 File Offset: 0x002FACD4
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			base.doParseStatement(psql);
			TDummy tdummy = (TDummy)this.rootNode;
			this.dbObjectName = (TObjectName)tdummy.node1;
			this.dbObjectType = tdummy.objectType;
			return 0;
		}

		// Token: 0x0600052E RID: 1326 RVA: 0x002FCB1D File Offset: 0x002FAD1D
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x0600052F RID: 1327 RVA: 0x002FCB2D File Offset: 0x002FAD2D
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x04001136 RID: 4406
		private TObjectName dbObjectName;

		// Token: 0x04001137 RID: 4407
		private EDbObjectType dbObjectType;
	}
}
